﻿using UnityEditor;
using UnityEditor.UI;

namespace StarForce
{
	[CustomEditor(typeof(CustomButton),true)]
	[CanEditMultipleObjects]
	public class CustomButtonEditor : ButtonEditor
	{
		private SerializedProperty m_EndValue;

		protected override void OnEnable()
		{
			base.OnEnable();
			m_EndValue = serializedObject.FindProperty("m_EndValue");

		}

		public override void OnInspectorGUI()
		{
			base.OnInspectorGUI();
			EditorGUILayout.Space();
			serializedObject.Update();
			
			EditorGUILayout.PropertyField(m_EndValue);
			
			serializedObject.ApplyModifiedProperties();
		}
	}
}